package me.qi.kancha.resp;

import lombok.Getter;
import org.springframework.validation.FieldError;

import java.util.List;

/**
 * 字段错误异常
 *
 * @author sun
 * @date 2019/10/14 14:11
 */
@Getter
public class FieldErrorException extends RuntimeException {

    private List<FieldError> errors;

    public FieldErrorException(List<FieldError> errors) {
        super("field value error!");
        this.errors = errors;
    }
}
